Skip to main content

mergAVPlayerGet

Type

function

Summary

Get a player property

Syntax

mergAVPlayerGet(<pPlayerPointer>, <pProperty>)

Description

Get a player property

Parameters

NameTypeDescription

pPlayerPointer

a pointer to the player in memory

pProperty

the name of the property you are getting which will be one

of

  • rect : the rect of the control

  • visible : the visible of the control

  • rate : the play rate of the player where 0 is paused. 1 is normal forward play and -1 is reverse. See "can play fast forward" and "can play fast reverse" properties

  • video gravity : how to size the video within the rect of the player. One of:

    • stretch
    • aspect
    • aspect fill
  • forward playback end time : set the time at which playback should end when the playback rate is positive. Time should be in milliseconds. The value of this property has no effect on playback when the rate is negative.

  • reverse playback end time : set the time at which playback should end when the playback rate is negative. Time should be in milliseconds. The value of this property has no effect on playback when the rate is positive.

  • can play fast forward : true if the player can play at a rate greater than 1

  • can play fast reverse : true if the player can play at a rate less than -1

  • ready for display : true if the player is ready for display

  • duration : the duration of the player. Times are in milliseconds.

  • current time : the current time of the player. Times are in milliseconds.

Compatibility and Support

Introduced

LiveCode 8.0

OS

ios

mac

Platforms

desktop

mobile

Thank you for your feedback!

Was this page helpful?